#include <windows.h>
#include <psapi.h>
#include "resource_use_statistics.h"

int ResourceUsage::getMemoryInfo() {
	HANDLE handle = GetCurrentProcess();
	PROCESS_MEMORY_COUNTERS pmc;
	GetProcessMemoryInfo(handle, &pmc, sizeof(pmc));
	return pmc.WorkingSetSize;
}

//float ResourceUsage::getCPUInfo() {
//	FILETIME lpCreationTime;
//	FILETIME lpExitTime;
//	FILETIME lpKernelTime;
//	FILETIME lpUserTime;
//	HANDLE handle = GetCurrentProcess();
//	GetProcessTimes(handle, &lpCreationTime, &lpExitTime, &lpKernelTime, &lpUserTime);
//	           
//}